def calculate_total(scores:list)->float:
    sum_score = 0
    for i in scores:
        sum_score += i

    return sum_score

def calculte_average(scores:list):
    sum_score = calculate_total(scores)
    average_score = sum_score/len(scores)
    return average_score,sum_score



if __name__ == '__main__':
    scores = [80,90,85,95,70]
    average = calculte_average(scores)
    print(type(average))
    print(f'平均成绩:{average[0]},总成绩是{average[1]}')
